﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Commuting.aspx.cs" Inherits="WebApplication2.WebForm3" %>
<%--css--%>
<asp:Content ID="Content1" ContentPlaceHolderID="headcss" runat="server">
    <link rel="stylesheet" href="css/Commuting.css">
    <link rel="stylesheet" href="css/mainCar.css">
</asp:Content>
<%--js--%>
<asp:Content ID="Content2" ContentPlaceHolderID="headjs" runat="server">
    <script type="text/javascript" src="js/res.js"></script>
    <script type="text/javascript" src="js/mainCarC.js"></script>
    <script type="text/javascript" src="js/mainCarCP.js"></script>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=1.4"></script>
</asp:Content>
<%--内容--%>
<asp:Content ID="Content3" ContentPlaceHolderID="Commuting" runat="server" >
        <%--发布拼车Issue--%>
        <div id="Issue">
                <div class="Issue-box">
                    <div class="Issue-box-navigation">
                        <span class="Issue-box-navigation-txt">上下班拼车发布</span>
                        <!-- <a class="Issue-box-navigation-btn">关闭</a> -->
                        <input type="button" value="关闭" class="Issue-box-navigation-btn">
                    </div>
                    <!-- 输入框 -->
                    <div class="Issue-box-Input">
                        <p>出发地址：
                            <%--<input class="Issue-box-Input-inp" type="text" name="" id="">--%>
                            <asp:TextBox ID="start" runat="server" class="Issue-box-Input-inp"></asp:TextBox>
                        </p>
                        <p>目的地址：
                            <%--<input  class="Issue-box-Input-inp"type="text" name="" id="">--%>
                            <asp:TextBox ID="end" runat="server" class="Issue-box-Input-inp"></asp:TextBox>
                        </p>
                        <p>途径<span class="txt-ys">(可填)： </span>
                            <%--<input class="Issue-box-Input-inp" type="text" name="" id="">--%>
                            <asp:TextBox ID="TextBox3" runat="server" class="Issue-box-Input-inp"></asp:TextBox>
                        </p>
                        <p>途径<span class="txt-ys">(可填)：</span>
                            <%--<input class="Issue-box-Input-inp" type="text" name="" id="">--%>
                            <asp:TextBox ID="TextBox4" runat="server" class="Issue-box-Input-inp"></asp:TextBox>
                        </p>
                        <p>途径<span class="txt-ys">(可填)：</span>
                            <%--<input class="Issue-box-Input-inp" type="text" name="" id="">--%>
                            <asp:TextBox ID="TextBox5" runat="server" class="Issue-box-Input-inp"></asp:TextBox>
                        </p>
                        <p>途径<span class="txt-ys">(可填)：</span>
                            <%--<input  class="Issue-box-Input-inp"type="text" name="" id="">--%>
                            <asp:TextBox ID="TextBox6" runat="server" class="Issue-box-Input-inp"></asp:TextBox>
                        </p>
                    </div>
                    <!-- 地图 -->
                    <div class="Issue-box-map">
                         <div style="width:595px;height:265px;" id="dituContent"></div>
                    </div>
                    <!-- 出发时间 -->
                    <div class="Issue-box-time">
                        <span class="Issue-box-span">出发时间:</span>
                        <select name="daySelect">
                            <option value="工作日">工作日</option>
                            <option value="休息日">休息日</option>
                        </select>
                        &nbsp
                        <select name="timeSelect">
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="4">4</option>
                            <option value="5">5</option>
                            <option value="6">6</option>
                            <option value="7">7</option>
                            <option value="8">8</option>
                            <option value="9">9</option>
                            <option value="10">10</option>
                            <option value="11">11</option>
                            <option value="12">12</option>
                            <option value="13">13</option>
                            <option value="14">14</option>
                            <option value="15">15</option>
                            <option value="16">16</option>
                            <option value="17">17</option>
                            <option value="18">18</option>
                            <option value="19">19</option>
                            <option value="20">20</option>
                            <option value="21">21</option>
                            <option value="22">22</option>
                            <option value="23">23</option>
                            <option value="24">24</option>
                        </select>
                        &nbsp
                        <span>:</span>
                        &nbsp
                        <select name="minuteSelect">
                            <option value="00">00</option>
                            <option value="10">10</option>
                            <option value="20">20</option>
                            <option value="30">30</option>
                            <option value="40">40</option>
                            <option value="50">50</option>
                            <option value="60">60</option>
                        </select>
                        <span>是否有返程</span>
                        <select name="returnSelect" >
                            <option value="是">是</option>
                            <option value="否">否</option>
                        </select>

                    </div>
                    <!-- 车型 -->
                    <div class="Issue-box-Model">
                        <span class="Issue-box-Model-txt">车型:</span>
                        <select name="carType" id="CarTypeID">
                            <option value="轿车">轿车</option>
                            <option value="UVA">UVA</option>
                        </select>
                        &nbsp
                        <span>可容纳人数：</span>
                        <%--<input type="text" name="" class="Issue-box-Model-ipt">--%>
                        <asp:TextBox ID="txtModel" runat="server" class="Issue-box-Model-ipt"></asp:TextBox>
                        <span>位</span>
                        &nbsp
                        <span>每人单程费用：</span>
                        <%--<input type="text" name="" class="Issue-box-Model-ipt">--%>
                        <asp:TextBox ID="txtMode2" runat="server" class="Issue-box-Model-ipt"></asp:TextBox>
                    </div>
                    <!-- 补充说明 -->
                    <div class="Issue-box-explain">
                        <span>补充说明:</span></p>
                        <h class="explain-txt1">0</h><span class="explain-txt2">/500</span>

                    </div>
                    <%--<textarea type="text" class="Issue-box-explain-txt"></textarea>--%>
                    <asp:TextBox ID="txtExplain" runat="server" class="Issue-box-explain-txt"></asp:TextBox>
                    <%--<input type="button" value="发布" class="Issue-box-release">--%>
                    <asp:Button ID="ButRelease" runat="server" Text="发布" class="Issue-box-release" OnClick="ButRelease_Click"/>


                </div>
            </div>
    <section id="section">
        <div class="In">
            <div class="In-box1">
                <%--<span class="span1">南宁</span>--%>
                <asp:DropDownList ID="SelectListCity" runat="server" OnSelectedIndexChanged="SelectListCity_SelectedIndexChanged"></asp:DropDownList>
                <%--<span class="span2">[</span><a>切换城市</a><span class="span2">]</span>--%>
                <span class="span2">上下班拼车为上下班大搭车，顺风车</span>
                    <input type="button" value="发布拼车" id="hair">
                <div class="In-box1-soux">
                    <div>
                        <div class="In-box1-soux-txt">出发地址：</div>
                        <div class="In-box1-soux-bo">
                            <div class="box1"></div>
                        </div>
                        <asp:TextBox ID="txtaddress1" CssClass="soux-inp" runat="server"></asp:TextBox><asp:Label ID="Label1" runat="server" Text="*" ForeColor="Red"></asp:Label>
                        <%--<input type="text" name="" id="soux-inp">--%>
                    </div>
                    <div>
                        <div class="In-box1-soux-txt">目的地址：</div>
                        <div class="In-box1-soux-bo">
                            <div class="box1"></div>
                        </div>
                        <asp:TextBox ID="txtaddress2" CssClass="soux-inp" runat="server"></asp:TextBox><asp:Label ID="Label2" runat="server" Text="*" ForeColor="Red"></asp:Label>
                        <%--<input type="text" name="" id="soux-inp">--%>
                    </div>
                </div>
                <asp:Button ID="BtnSdd" runat="server" Text="搜索" class="In-box1-Sdd" OnClick="BtnSdd_Click"/>
                <%--<input type="button" value="搜索" class="In-box1-Sdd">--%>
            </div>
            <div class="In-box2">
                <%--地图--%>
                <div class="map">
                    <div style="width:801px;height:401px;" id="dituContentS"></div>
                </div>
            </div>
            <div class="In-box3">
                <div class="In-box3-list1">搜索结果</div>
                <div>
                <asp:GridView ID="ShortGridView" runat="server" class="In-box4"  CellPadding="4" EnableTheming="False" ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" Width="100%" OnRowCommand="ShortGridView_RowCommand">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField HeaderText="编号" DataField="ShortID">
                        <ItemStyle Width="100px" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="拼车路线">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("ShortID") %>' CommandName="det"> <sapn style="color:rgb(0 68 255)"><%# Eval("SGoCity") %>→<%# Eval("SDesitionation")%></sapn><span style="font-size:10pt;color:rgb(133 133 133);"><%# Eval("SPass") %></span></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="出发时间" DataField="SGoTime" >
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="单程费用" DataField="SCost" >
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="申请人数" DataField="SPeople">
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="已加入" DataField="SAPeople">
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="可容纳" DataField="SContain" >
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="状态" DataField="SStatus">
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#A9EFFE" Font-Bold="True" ForeColor="#666666" CssClass="In-box3-grvl" Font-Size="12pt" Height="40px" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" Font-Size="13pt" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
            </div>
            </div>
            
        </div>
    </section>
</asp:Content>

